package com.zhuxin.conf.prop;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * Created by lzb on 2017/5/27.
 */

@ConfigurationProperties(prefix = "datasource")
public class DataSourceProperties {
    private String[] sourcename;
    private String[] url;
    private String[] username;
    private String[] password;
    private Integer[] initSize;//初始化连接数
    private Integer[] maxActSize;//最大连接数
    private Integer[] minIdle;//最少空闲连接数
    private Integer[] queryTimeout;//超时时间
    private Integer[] transactionQueryTimeout;//超时时间
    private String[] validationQuery;//检测SQL
    private String[] filters;

    public String[] getSourcename() {
        return sourcename;
    }

    public void setSourcename(String[] sourcename) {
        this.sourcename = sourcename;
    }

    public String[] getUrl() {
        return url;
    }

    public void setUrl(String[] url) {
        this.url = url;
    }

    public String[] getUsername() {
        return username;
    }

    public void setUsername(String[] username) {
        this.username = username;
    }

    public String[] getPassword() {
        return password;
    }

    public void setPassword(String[] password) {
        this.password = password;
    }

    public Integer[] getInitSize() {
        return initSize;
    }

    public void setInitSize(Integer[] initSize) {
        this.initSize = initSize;
    }

    public Integer[] getMaxActSize() {
        return maxActSize;
    }

    public void setMaxActSize(Integer[] maxActSize) {
        this.maxActSize = maxActSize;
    }

    public Integer[] getMinIdle() {
        return minIdle;
    }

    public void setMinIdle(Integer[] minIdle) {
        this.minIdle = minIdle;
    }

    public Integer[] getQueryTimeout() {
        return queryTimeout;
    }

    public void setQueryTimeout(Integer[] queryTimeout) {
        this.queryTimeout = queryTimeout;
    }

    public Integer[] getTransactionQueryTimeout() {
        return transactionQueryTimeout;
    }

    public void setTransactionQueryTimeout(Integer[] transactionQueryTimeout) {
        this.transactionQueryTimeout = transactionQueryTimeout;
    }

    public String[] getValidationQuery() {
        return validationQuery;
    }

    public void setValidationQuery(String[] validationQuery) {
        this.validationQuery = validationQuery;
    }

    public String[] getFilters() {
        return filters;
    }

    public void setFilters(String[] filters) {
        this.filters = filters;
    }
}
